package xing.design.pattern.behavioral.Template.template;

/**
 * @author xing
 * @date 2023/2/10 23:51:13
 */
public abstract class Template {

    public void execute(int i, int i2) {
        System.out.println("this is step 1..");
        getAddresult(i, i2);
        System.out.println("this is final step ..");
    }

    protected abstract int getAddresult(int i, int i2) ;
}
